<%@page contentType="text/html; charset=utf-8"%>
<%@ page session="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
<title>${path}</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel=stylesheet href="../css/user.css" type="text/css">
</head>
<body bgcolor=#FFFFFF text=#000000 leftmargin=0 topmargin=0
	marginwidth=0 marginheight=0>
<br />
<table width="900" border="0" align="center">
	<tr>
		<td colspan="2"></td>
	</tr>
	<tr>
		<td>
			최종 수정자 : ${document.author.name}
		</td>
		<td align=right>
			<a	href="/simplewiki/newView_page.do?parentId=${document.id}"	title="View History">페이지추가</a> 
			<a	href="/simplewiki/updateView_page.do?id=${document.id}" id="logout">수정</a>
			<a href="/simplewiki/delete_page.do?id=${document.id}" id="logout">삭제</a>
			<a href="" id="logout">페이지정보</a>
		</td>
	</tr>
	<tr>
		<td><!-- write Form  -->
			<form name="f" method="post">
				<input type="hidden" name="documentId" value="${document.id}" />
				<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="BBBBBB">
					<tr>
						<td width=750 height="300" bgcolor="ffffff" style="padding-left: 10" colspan="2">
							${document.content}
						</td>
					</tr>
					<tr>
						<td width=150 align=center bgcolor="E6ECDE" height="22">Tags</td>
						<td width=750 bgcolor="ffffff" style="padding-left: 10">
							${document.tags}
						</td>
					</tr>
				</table>
			</form>
		</td>
		<TD>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" bgcolor="BBBBBB">
					<c:forEach items='${naverSearch.searchResults}' var='item'>
						<tr><td width=750 bgcolor="ffffff" style="padding-left: 10">
							<a href="${item.link}" target="blank">${item.title}</a></td></tr>
						<tr><td width=750 bgcolor="ffffff" style="padding-left: 10">${item.description}</td></tr>
						<tr><td width=750 bgcolor="ffffff" style="padding-left: 10">&nbsp;</td></tr>
					</c:forEach>
				</table>
		</TD>
	</tr>
	<tr>
		<td><!-- child page infomation  -->
			<table border="0" cellpadding="0" cellspacing="1" width="100%"	bgcolor="BBBBBB">
				<tr>
					<td>하위 페이지</td>
				</tr>
				<c:forEach items='${document.children}' var='item'>
					<tr><td bgcolor=FFFFFF><a href="/simplewiki/view_page.do?id=${item.id}">${item.title}</a></td></tr>
				</c:forEach>
			</table>
		</td>
	</tr>
</table>
</body>
</html>
